package com.hlf.modules.wechat.service;

import com.hlf.modules.wechat.model.ConfigWechat;
import com.hlf.modules.wechat.model.ConfigWechatVO;

import java.util.List;

/**
 * ConfigWechatService接口
 * @since 0.0.1
 * @author pan
 * @date 2017-07-07
 *
 */
public interface ConfigWechatService {

    int deleteById(Long id);

    int insert(ConfigWechat record);

    ConfigWechat selectById(Long id);
    
    ConfigWechat selectByAppId(String appId);
    
    List<ConfigWechat> select();

    List<ConfigWechat> selectByAgentId(Long topAgentId);

    int updateById(ConfigWechat record);
    
    ConfigWechat selectByAgentIdAndBizType(Long topAgentId);
    
    ConfigWechatVO selectConfigVOByAgentIdAndBizType(Long topAgentId);
    
    ConfigWechatVO selectMerchantConfigByAgentId(Long topAgentId);
    
    ConfigWechatVO selectPersonalConfigByAgentId(Long topAgentId);
}